import { request } from '@/utils/request';

export function getBlacklistPage(params) {
  return request({
    url: '/queue/blacklist/page',
    headers: {
      isToken: false
    },
    method: 'GET',
    params
  });
}

export function getAccType(params) {
  return request({
    url: '/queue/tenant-config/get-tenant-business-type',
    method: 'GET',
    params
  });
}
export function getBlacklistRecode(params) {
  return request({
    url: '/queue/blacklist-recode/page',
    headers: {
      isToken: false
    },
    method: 'GET',
    params
  });
}

export function blacklistCreateByApp(data) {
  return request({
    url: '/queue/blacklist/createByApp',
    headers: {
      isToken: false
    },
    method: 'POST',
    data
  });
}

export function deleteBlacklist(params) {
  return request({
    url: '/queue/blacklist/delete',
    headers: {
      isToken: false
    },
    method: 'DELETE',
    params
  });
}
